#include "film.h"
#include "color.h"

namespace rt {

Film::Film()
    : m_width(800)
    , m_height(600)
    , m_real_width_mm(36.0)
    , m_real_height_mm(24.0)
    , m_data(m_width*m_height,Color())
{

}

Film::~Film()
{

}

std::vector<Color>::const_iterator Film::begin() const
{
    return m_data.begin();
}

std::vector<Color>::const_iterator Film::end()   const
{
    return m_data.end();
}

std::vector<Color>::iterator Film::begin()
{
    return m_data.begin();
}

std::vector<Color>::iterator Film::end()
{
    return m_data.end();
}

std::size_t Film::size() const
{
    return m_data.size();
}

const std::size_t& Film::width() const
{
    return m_width;
}

const std::size_t& Film::height() const
{
    return m_height;
}

} //end of namespace
